let obj1 = {id:1,name:'zhangsan'}
let updateObj = {name:'zhangsan2'};
let newUser = {
    ...obj1,
    ...updateObj
}
console.log(newUser)